//
// Created by lymk on 2021/8/8.
//

#ifndef GAME2D_PHYCOMPONENT_H
#define GAME2D_PHYCOMPONENT_H
#include "vector"
#include "../GMath.h"
class GameActor;
class ItemActor;
class PhyComponent {
    std::vector<GMath::Rectangle> collideBox;
    std::vector<ItemActor*> collideItem;
public:
    void AddCollideBox(GMath::Rectangle box);

    void DeleteCollideActor(ItemActor* actor);

    void AddCollideActor(ItemActor* actor);

    ItemActor* PreViewCollide(GMath::Rectangle box);

    void update();
};


#endif //GAME2D_PHYCOMPONENT_H
